package com.dao.impl;

import com.dao.RootDao;
import com.pojo.Root;

/**
 * @Author hjb
 * @Version 1.0
 * @Contact 1754729389@qq.com
 */
public class RootDaoImpl extends BaseDao implements RootDao {
    @Override
    public Root queryRootByNameAndPassword(String username, String password) {
        String sql = "select id, username,`password` " +
                "from roots " +
                "where username=? and " +
                "password=?";
        return queryForOne(Root.class,sql,username,password);
    }
}
